Advanced interactive interfaces with Access by Alessandro Grimaldi

Advanced interactive interfaces with Access by Alessandro Grimaldi

Author:Alessandro Grimaldi
Language: eng
Format: epub
ISBN: 9798868808081
Publisher: Apress


Since our problem is handling an array of objects with events, clsMaster is our solution. The user will create and interact with a single instance of this object, rather than an array of objects like before, so it can even be declared WithEvents if necessary. The Master will act as an intermediate layer between the form and the objects, doing the “dirty job,” so to say, handling the array of images on behalf of the user, and communicating to the user (which means the form) the occurring events. Every image will be passed to clsSlave (formerly clsDrag), which will make it draggable and handle the drag events, exactly like before. This may sound confusing, but I hope it will become clearer as we proceed.

So, let’s add again our four images (Figure 4-15) and rename them properly as imgDrag1, imgDrag2, imgDrag3, and imgDrag4. This time the numeration is important, as each number will work as an alias for the corresponding image. So, to the user, imgDrag1 will be “image 1,” imgDrag2 will be “image 2,” and so on.

Figure 4-15Linking multiple images (design)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.